<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  data () {
    return {
      config: {
        header: ['时间', '站点', '车牌', '标识'],
        data: [
          ['2023-08-01 19:25', '报国寺', '粤B12345', '入站'],
          ['2023-08-02 17:25', '高铁站', '粤B12345', '入站'],
          ['2023-08-03 16:25', '雷洞坪', '粤B12345', '出站'],
          ['2023-08-04 15:25', '五显岗', '粤B12345', '入站'],
          ['2023-08-05 14:25', '万年寺', '粤B12345', '出站'],
          ['2023-08-06 13:25', '报国寺', '粤B12345', '出站'],
          ['2023-08-07 12:25', '黄湾', '粤B12345', '入站'],
          ['2023-08-08 11:25', '报国寺', '粤B12345', '出站'],
          ['2023-08-09 10:25', '零公里', '粤B12345', '入站'],
          ['2023-08-10 09:25', '雷洞坪', '粤B12345', '出站']
        ],
        index: false,
        columnWidth: [160,80,100, 60],
        align: ['center'],
        rowNum: 7,
        headerBGC: '#1981f6',
        headerHeight: 45,
        oddRowBGC: 'rgba(0, 44, 81, 0.8)',
        evenRowBGC: 'rgba(10, 29, 50, 0.8)'
      }
    }
  }
}
</script>

<style lang="scss">
#scroll-board {
  width: 50%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
}
</style>
